var t = require('../@babel/runtime/helpers/regeneratorRuntime.js'),
  e = require('../@babel/runtime/helpers/asyncToGenerator.js'),
  n = require('9CF0519170B67DCFFA963996C0721B27.js').jumpDo,
  r = require('A9B0993670B67DCFCFD6F1317FB01B27.js');
function a() {
  return (a = e(
    t().mark(function e(n) {
      var a, i, o;
      return t().wrap(function (t) {
        for (;;)
          switch ((t.prev = t.next)) {
            case 0:
              return (
                (t.next = 2),
                r.common.getH5activeDetail(n, { resolvePlainData: !0 })
              );
            case 2:
              return (
                (a = t.sent),
                (i = 1e3 * +a.time),
                (a.data.items = a.data.items.filter(function (t) {
                  return (
                    (16 != +t.component_id && 21 != +t.component_id) ||
                    !t.content.start_at ||
                    !t.content.end_at ||
                    (t.content.start_at <= i && t.content.end_at >= i)
                  );
                })),
                (o = a.data.items),
                o
                  .filter(function (t) {
                    return (
                      4 == +t.component_id ||
                      15 == +t.component_id ||
                      3 == +t.component_id ||
                      24 == +t.component_id
                    );
                  })
                  .forEach(function (t) {
                    t.content.imgs = t.content.imgs.filter(function (t) {
                      return (
                        !t.start_at ||
                        !t.end_at ||
                        (t.start_at <= i && t.end_at >= i)
                      );
                    });
                  }),
                t.abrupt('return', a.data)
              );
            case 9:
            case 'end':
              return t.stop();
          }
      }, e);
    }),
  )).apply(this, arguments);
}
module.exports = {
  autoPageMain: function (t) {
    var e = t.detail;
    n(e);
  },
  getPageConfigApi: function (t) {
    return a.apply(this, arguments);
  },
};
